home *** CD-ROM | disk | FTP | other *** search
/ Chip 2001 September / Chip_2001-09_cd1.bin / sharewar / webscrip / webscripter4s.exe / {app} / Includes / jsRollOver.ob < prev    next >
Encoding:
Text File  |  2001-07-11  |  632 b   |  27 lines

  1. //begin_lib <!-- Begin External JavaScript -- DO NOT REMOVE THIS LINE -->
  2.  
  3. function jsRollOver(){
  4. this.Items = new Array();
  5. this.SetImg = img_Set;
  6. this.Over = img_Over;
  7. this.Out = img_Out;
  8. }
  9.  
  10. function img_Set(img,src1,src2){
  11. this.Items[img]=new Array();
  12. this.Items[img][0]=new Image();
  13. this.Items[img][0].src = src1;
  14. this.Items[img][1]=new Image();
  15. this.Items[img][1].src=src2;
  16. }
  17.  
  18. function img_Over(img){
  19. document.images[img].src = this.Items[img][1].src;
  20. }
  21.  
  22. function img_Out(img){
  23. document.images[img].src = this.Items[img][0].src;
  24. }
  25.  
  26. //end_lib <!-- End External JavaScript -- DO NOT REMOVE THIS LINE -->
  27.